package logCollect;

import java.util.ArrayList;

//定义流量走向类
public class traffic {
    Double totaltraffic;
    Double residuetraffi;
    Double uptraffic;
    Double downtraffic;
    Double usetraffic;
    String nowprovinceCode;
    String nowcityCode;
    ArrayList<trafficInfo> trafficInfo;

    public traffic() {
    }

    public traffic(Double totaltraffic, Double residuetraffi, Double uptraffic, Double downtraffic, Double usetraffic, String nowprovinceCode, String nowcityCode,ArrayList<trafficInfo> trafficInfo) {
        this.totaltraffic = totaltraffic;
        this.residuetraffi = residuetraffi;
        this.uptraffic = uptraffic;
        this.downtraffic = downtraffic;
        this.usetraffic = usetraffic;
        this.nowprovinceCode = nowprovinceCode;
        this.nowcityCode = nowcityCode;
        this.trafficInfo = trafficInfo;

    }

    public ArrayList<logCollect.trafficInfo> getTrafficInfo() {
        return trafficInfo;
    }

    public void setTrafficInfo(ArrayList<logCollect.trafficInfo> trafficInfo) {
        this.trafficInfo = trafficInfo;
    }

    public Double getTotaltraffic() {
        return totaltraffic;
    }

    public void setTotaltraffic(Double totaltraffic) {
        this.totaltraffic = totaltraffic;
    }

    public Double getResiduetraffi() {
        return residuetraffi;
    }

    public void setResiduetraffi(Double residuetraffi) {
        this.residuetraffi = residuetraffi;
    }

    public Double getUptraffic() {
        return uptraffic;
    }

    public void setUptraffic(Double uptraffic) {
        this.uptraffic = uptraffic;
    }

    public Double getDowntraffic() {
        return downtraffic;
    }

    public void setDowntraffic(Double downtraffic) {
        this.downtraffic = downtraffic;
    }

    public Double getUsetraffic() {
        return usetraffic;
    }

    public void setUsetraffic(Double usetraffic) {
        this.usetraffic = usetraffic;
    }

    public String getNowprovinceCode() {
        return nowprovinceCode;
    }

    public void setNowprovinceCode(String nowprovinceCode) {
        this.nowprovinceCode = nowprovinceCode;
    }

    public String getNowcityCode() {
        return nowcityCode;
    }

    public void setNowcityCode(String nowcityCode) {
        this.nowcityCode = nowcityCode;
    }

    @Override
    public String toString() {
        return "{" +
                " \"totaltraffic\":" + totaltraffic +
                ",\" residuetraffi\":" + residuetraffi +
                ",\" uptraffic\":" + uptraffic +
                ",\" downtraffic\":" + downtraffic +
                ",\" usetraffic\":" + usetraffic +
                ",\" nowprovinceCode\":\"" + nowprovinceCode + '\"' +
                ",\" nowcityCode\":\"" + nowcityCode + '\"' +
                ",\" trafficInfo\":" + trafficInfo +
                '}';
    }
}
